package com.itsv.news;


import com.itsv.news.utils.CrashHandler;
import com.itsv.news.utils.ImageUtils;

import android.app.Activity;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

public class TabInterActivity extends Activity {
	private CrashHandler crashHandler = CrashHandler.getInstance();  
	private ImageView iv1,iv2,iv3;
	private TextView tv1,tv2,tv3;
	private String TAG="TabInterActivity";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_interactive);
		crashHandler.init(this);
		iv1 = (ImageView) findViewById(R.id.iv1);
		iv1.setImageBitmap(ImageUtils.toRoundCorner(BitmapFactory.decodeResource(getResources(),R.drawable.test5),15));
		
		tv1=(TextView)findViewById(R.id.tv1);
		
		iv2 = (ImageView) findViewById(R.id.iv2);
		iv2.setImageBitmap(ImageUtils.toRoundCorner(BitmapFactory.decodeResource(getResources(),R.drawable.test6),15));
		
		tv2=(TextView)findViewById(R.id.tv2);
		
		iv3 = (ImageView) findViewById(R.id.iv3);
		iv3.setImageBitmap(ImageUtils.toRoundCorner(BitmapFactory.decodeResource(getResources(),R.drawable.test1),15));
		
		tv3=(TextView)findViewById(R.id.tv3);
		
		iv1.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent=new Intent(TabInterActivity.this, TabInter_ConsultingActivity.class);
				startActivity(intent);
			}
			
		});
		iv2.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent=new Intent(TabInterActivity.this, TabInter_ConsultingActivity.class);
				startActivity(intent);
			}
			
		});
		iv3.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent=new Intent(TabInterActivity.this, TabInter_ConsultingActivity.class);
				startActivity(intent);
			}
			
		});
		Log.i("TAG","image's width"+iv3.getWidth());
		Log.i("TAG","image's height"+iv3.getHeight());
//		gv=(GridView) findViewById(R.id.gv_pic);
//		adapter=new GvPicAdapter(this);
//		gv.setAdapter(adapter);
	}
}
